<?php
namespace Home\Controller;

use Think\Controller;

/**
 * Created by IntelliJ IDEA.
 * User: fanxu(746439274@qq.com)
 * Date: 15/7/6
 * Time: 下午11:51
 */

class IndexController extends BaseController{

    public function index(){
        $isOpen = cookie('can_look');
        if( empty( $isOpen ) ){
            header('Location: /Admin/Lock/index.html');exit;
        }
        cookie('can_look',false);
        $this->show();
    }

}